package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sunhl
 * @Description: 1-22-1 分布式组件-SpringCloud-OpenFeign测试远程调用
 * @Date: created in 2020/8/6 16:45
 * @Modified By:
 */
@FeignClient(name = "gulimall-coupon")
public interface CouponFeignService {

    /**
     * 路径需要为全路径
     * member 调用 coupon, 在member中注册coupon的接口
     * 同时在member的启动类上开启menber的feign调用功能
     * @return
     */
    @RequestMapping("/coupon/coupon/member/list")
    public R membercoupons();

}
